from django.db import models

# Create your models here.
from dvadmin.utils.models import CoreModel


class CrudDemoModel(CoreModel):
    goods = models.CharField("商品", max_length=255)
    inventory = models.IntegerField("库存量")
    goods_price = models.DecimalField("商品定价", max_digits=30, decimal_places=2)
    purchase_goods_date = models.DateField("进货时间")

    class Meta:
        db_table = "goods"
        verbose_name = '商品表'
        verbose_name_plural = verbose_name
        ordering = ('-create_datetime',)
